package cn.sh.yhk.config.web;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;

/**
 * @Classname Yhk
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/10/3 18:35
 * @Created by y6522
 */
public class WebMvcConfigurer implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer {
    @Override
    public void configurePathMatch(PathMatchConfigurer configurer) {
        org.springframework.web.servlet.config.annotation.WebMvcConfigurer.super.configurePathMatch(configurer);
            configurer
                    .addPathPrefix("/api", c -> c.isAnnotationPresent(RestController.class));

    }
}
